package com.gai.shop.common;

public interface Const {
    interface  OrderConst{
        Integer ORDER_NON_PAY = 0;//未付款
        Integer ORDER_PAY_SUCCESS = 1;//已付款未发货
        Integer ORDER_SEND = 2;//发货待收货
        Integer ORDER_SEND_COMMENT = 3;//收货待评价
        Integer ORDER_COM = 4;//订单完成
        Integer ORDER_RETURN = 5;//退货状态
    }
    //接口里面的所有属性都是默认为静态的常量
    /**
     * 路径常量
     */
    String FORWARD = "forward:";
    String REDIRECT = "redirect:";
    String COLON = ":";
    String MESSAGE = "MESSAGE";
    //验证码
    String VALIDATE = "validate";
    String LOGIN_USER = "login_user";
    String PRO_LIST = "proList";
    String PAGE = "page";
    String PRO = "pro";

    interface AdminConst{
        String ADMIN = "admin";
    }
    interface AdminProductConst{
        String GOODS_TYPE_LIST = "goodsTypeList";
    }
    /**
     * 用户使用常量
     */
    interface UserConst{
        //会员
        Integer IS_MUNBER = 0;
        //管理员
        Integer IS_ADMIN = 1;
        //激活
        Integer HAS_ACTIVE = 1;
        //未激活
        Integer HAS_NOT_ACTIVE = 0;
        //自动登录设置
        String AUTO_LOGIN = "auto_login";
        //用户登录
        String LOGIN_USER = "login_user";
        //购物车
        String CARTS = "carts";
        //收货地址
        String ADD_LIST = "addList";
        //购物车
        String CART_LIST = "cartList";
        //订单
        String ORDER_LIST = "orderList";
        String ORDER = "order";
        String ITEM_LIST = "itemList";
    }
}
